package savet.util.io;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author Adisson Marinho
 */
public class FiltroSaudita extends FileFilter {

    @Override
    public boolean accept(File f) {
        String fileName = f.getName();

        return f.isDirectory()
                || fileName.contains(".saud")
                || fileName.contains(".saudita");
    }

    @Override
    public String getDescription() {
        return "Arquivos *.saud *.saudita";
    }
}
